#include "Container.h"

void Container::add(Widget *widget){
	widgets.push_back(widget);
}

void Container::erase(Widget *widget){
	widgets.remove(widget);
}

Container::Container(int posX, int posY,SDL_Surface* surface, Widget *parent)
:Widget(posX, posY,surface, parent){}

Container::~Container() {
	while(!widgets.empty()){
		delete widgets.back();
		widgets.pop_back();
	}
}

